Tweak date selector defaults
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 12 Apr 2008 06:09:11 +0000 (06:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 12 Apr 2008 06:09:11 +0000 (06:09 +0000)
includes/SpecialContributions.php

index a737b9c..9ba433a 100644 (file)
@@ -7,7 +7,7 @@
 class ContribsPager extends ReverseChronologicalPager {
        public $mDefaultDirection = true;
        var $messages, $target;
-       var $namespace = '', $mDb;
+       var $namespace = '', $year = '', $month = '', $mDb;
 
        function __construct( $target, $namespace = false, $year = false, $month = false ) {
                parent::__construct();
@@ -281,13 +281,13 @@ function wfSpecialContributions( $par = null ) {
 
        wfRunHooks( 'SpecialContributionsBeforeMainOutput', $id );
 
-       $wgOut->addHTML( contributionsForm( $options ) );
-       
        if( $skip ) {
                $options['year'] = '';
                $options['month'] = '';
        }
 
+       $wgOut->addHTML( contributionsForm( $options ) );
+
        $pager = new ContribsPager( $target, $options['namespace'], $options['year'], $options['month'] );
        if ( !$pager->getNumRows() ) {
                $wgOut->addWikiMsg( 'nocontribs' );